#include <string.h>
#include <Jni.h>

int add(){
	int x, y;
	x=100;
	y=50;
	return x+y;
}

JNIEXPORT jint JNICALL Java_com_temp_demo_jni_Jni_add
  (JNIEnv* env, jobject thiz){
	return add();

}

JNIEXPORT jstring JNICALL Java_com_temp_demo_jni_Jni_getString
	(JNIEnv* env, jobject thiz){
	return (*env)->NewStringUTF(env, "Hello world! Jni!");
}
